<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script src="layui/layui.js"></script>
    <link rel="stylesheet" href="layui/css/layui.css" />
    <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
</head>

<body>
    <a th:if="${userStatus} == '未登录'" th:href="@{/tologinPage}">登录</a>
    <a th:if="${userStatus} == '未登录'" th:href="@{/toregisterPage}">注册</a>
    <a th:if="${userStatus} == '已登录'" th:href="@{/tologinout}">退出登录</a>
    <span th:if="${userStatus} == '未登录'">未登录</span>
    <span th:if="${userStatus}  == '已登录'" th:text="${session.user.getNickname()}">用户名</span>
    <a th:if="${userStatus} == '已登录'" th:href="@{/touserInfo}">个人中心</a>
    <img th:if="${userStatus} == '已登录'" th:src="@{${session.user.getHeadicon()}}" alt="头像" width="60" height="40">

    <!--goodsList-->
    <!--<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">-->
        <!--<legend>卡片面板</legend>-->
    <!--</fieldset>-->

    <div style="padding: 20px; background-color: #F2F2F2;">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md6">
                <div class="layui-card">
                    <div class="layui-card-header">卡片面板</div>
                    <div class="layui-card-body">
                        卡片式面板面板通常用于非白色背景色的主体内<br>
                        从而映衬出边框投影
                    </div>
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header">标题</div>
                            <div class="layui-card-body">
                                内容
                            </div>
                        </div>
                    </div>
                </div>
                </div>
            </div>
    </div>
    <h1>HomePage</h1>
    <h2>MySql 5.7: 47.102.192.95 username : root  password : "Aoroot8550304--"</h2>
    <h2>Maven 3.5.0 </h2>
    <h2>IDEA</h2>
    <h2>JDK 1.8</h2>
    <h2>server.port = 8081</h2>
    <h2>github address : "https://github.com/aoguangcheng/jiujiu_usedcar"</h2>
    <h2>Spring Boot : (v2.2.0.RELEASE)</h2>
</body>
</html>